import { getBaseCategoryList } from "@/API/index"
//TypeNov的vuex仓库
const actions = {
    async categoryList({ commit }) {
        let resylt = await getBaseCategoryList()
        if (resylt.code == 200) {
            commit("Cate", resylt.data)
        }
    }
}
const mutations = {
    Cate(state, resylt) {
        state.categoryList = resylt;
    }
}
const state = {
    categoryList: [],
}
export default {
    actions,
    mutations,
    state
}
